package com.qiall.gateway.data.mapper;

import com.qiall.gateway.data.entity.ApiInfo;
import com.qiall.gateway.data.entity.MenuInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuMapper {
    void insert(MenuInfo apiInfo);

    void update(MenuInfo apiInfo);

    MenuInfo selectById(@Param("id")Integer id);

    List<MenuInfo> selectAll();

    int countByName(@Param("name") String name);

    MenuInfo selectByMenuName(@Param("name")String name);

    MenuInfo selectByUrl(@Param("url")String url);

}
